<template>
	<view class="punish">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<view class="content1" v-if="this.current==0">
			<view class="no">
				<image src="../../static/img/no.png" mode=""></image>
				<view class="xiaoxi">
					暂无记录~
				</view>
			</view>
		</view>
		<view class="content1" v-if="this.current==1">
			<view class="no">
				<image src="../../static/img/no.png" mode=""></image>
				<view class="xiaoxi">
					暂无记录~
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				list: [{
					name: '奖励'
				}, {
					name: '惩罚'
				}],
				current: 0,
			}
		},
		methods:{
			change(index) {
				this.current = index;
			},
		}
	}
</script>

<style scoped>
	.punish{
		background: rgb(238,238,238);
		height: 1250rpx;
	}
	.no{
		display: flex;
		flex-direction: column;
		align-content: center;
		align-items: center;
		padding-top: 50%;
	}
	.no image{
		width: 220rpx;
		height: 200rpx;
	}
	.no view{
		color: rgb(153,153,153);
		padding-top: 30rpx;
	}
</style>
